package com.ssy.lingxi.platform.template.service.constant;


import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 页面模板上下架状态 - enum
 * @author fhj
 * @date 2020/07/30
 * @version 2.0.0
 */
public enum PageTemplateShelfEnum {

    ON_SHELF(1, "上架"),
    OFF_SHELF(0, "下架");

    private final Integer code;

    PageTemplateShelfEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.code);
    }
}
